<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<form enctype="multipart/form-data" action="${pageContext.request.contextPath}/upload" method="post">
    用户名：<input type="text" name="userName" ><br/>
    头像选择：<input type="file" name="logo"><br/>
    <input type="submit" value="上传"><br/>
</form>
</body>
</html>